﻿@model Unijovem.UI.Models.ChangePasswordModel

@{
    ViewBag.Title = "Troca de senha";
}

<h3>Troca de senha</h3>
<p>
    Para trocar sua senha, preencha os campos abaixo
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div>
        <fieldset>
            <legend></legend>

            <div class="editor-field">
                <b>@Html.LabelFor(m => m.Email):</b> @Html.DisplayFor(m => m.Email)
                @Html.HiddenFor(m => m.Email)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.OldPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.NewPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword, new { @maxlength = 20 })
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="Trocar senha" />
            </p>
        </fieldset>
    </div>
}
